package com.ruoyi.web.controller.app.controller;

import com.ruoyi.framework.web.exception.base.XResult;
import com.ruoyi.web.controller.app.service.AppBankCandService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AppBankCard
 * @Description TODO
 * @Author tyc@yanyu
 * @Date 2018/12/18 0018 09:56
 **/
@RestController
@RequestMapping("/app/bankcard")
@Api(tags = "银行卡绑定")
public class AppBankCardController {

    @Autowired
    private AppBankCandService appBankCandService;

    @RequestMapping(value = "getCardName",method = RequestMethod.POST)
    @ApiOperation(value = "银行卡号获取名称")
    @ApiImplicitParam(name = "bankCardNum", value = "银行卡号", required = true, dataType = "String", paramType = "query")
    public XResult getCardName(String bankCardNum){
        return new XResult("操作成功",appBankCandService.getBankName(bankCardNum));
    }
}
